createAuthToken

Create an authorization token

Tokens provide authorization for agents, users, and external systems or applications.

Format

udclient [global-args...] [global-flags...]
  createAuthToken [parameters]

Parameters

Table 1. Parameters
Parameter Type Required Description
user string true The user this token is associated with
expireDate string true Expiration date and time of the token, in the format MM-DD-YYYY-HH:mm
description string false Description of the authorization token
allowedIps string false Allowed IP addresses in CIDR notation, such as 192.169.1.0/24
restriction string false Name of id of auth token restrictions to apply to created auth token

Example

udclient -username jsmith -password passwd 
  -weburl https://myserver.example.com:8443
  createAuthToken
  -user admin
  -expireDate 12-31-2020-12:00

Example response

{"token":"42ece458-b197-4c2e-92a0-c63e10fd9b4f"}

Related REST command: Create an authorization token.